package com.atguigu.boot04.service;

import com.atguigu.boot04.bean.Admin;
import com.atguigu.boot04.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:朱思博
 * @date:2021/5/8-{19:08}
 */
@Service
public class AdminService {
    @Autowired
    AdminMapper adminMapper;

    public Admin getAdminById(Integer id){
        return adminMapper.getAdmin(id);
    }
}
